#ifndef __OSC_H
#define __OSC_H

#include "sys.h"
#include "adc.h"
#include "tim.h"
#include "lcd.h"
#include "ltdc.h"
#include "stm32_dsp.h"

extern uint16_t setstate;

void OSC_Init(void);
void OSC_ShowWave(uint16_t g_adc_dma_buf[], uint16_t color);
float OSC_GetVpp(uint16_t* pBuff);
float OSC_GetVp(uint16_t* pBuff);
void OSC_Gui(uint16_t g_adc_dma_buf[], uint16_t color, uint16_t i);
void OSC_ShowNum(float Value, uint16_t x, uint16_t y, uint16_t color);
uint32_t OSC_Frequncy(uint16_t originalAdc[]);
void GetPowerMag(void);

#endif


